#ifndef CONCAVEFLOOR_H
#define CONCAVEFLOOR_H

#include "../entities/worldb.h"

class Concavefloor : public WorldB {

	public:
		Concavefloor( Textverbosemessage* textverbosemessage );
		~Concavefloor();

		void		init();
	private:
		const unsigned int* worldsizeZ;
		void		makeFloor();
		void		drawfloor();
		void		setVertexPositions(float waveheight, float offset);

		btRigidBody* fixedGround;
		btCollisionShape* groundShape;
		btTransform groundTransform;
		btDefaultSerializer* serializer;
		btVector3 aabbMin;
		btVector3 aabbMax;
    Entity*   dummyEntity;


		btVector3* gVertices;
		btTriangleIndexVertexArray* m_indexVertexArrays;
		int* gIndices;
		btBvhTriangleMeshShape* trimeshShape;
		float waveheight;
		float TRIANGLE_SIZE;
		int NUM_VERTS_X;
		int NUM_VERTS_Y;
		int totalVerts;
		int border;
		GlDrawcallback drawCallback;

};

#endif
